package com.blueocean_health.care.management.domain.dto;

import java.text.DecimalFormat;
import java.util.HashMap;

import com.alibaba.fastjson.annotation.JSONField;
import com.blueocean_health.care.management.common.excel.ExcelResources;

/**
 * @author			作者:            zwg.BlueOcean
 * @date       			创建时间：2017年9月1日  上午11:43:00
 * @version  		版本号：    1.0*
 * @parameter  	* 
 * @since  			* 
 * @return  			*
 * @description	*	
 */
public class DepartmentCountReport {
	private int id;
	private String departmentName;//科室
	private Double cost;
	private int workers;
	private int patients;
	private Integer department;
	private String beginTime;
	private String endTime;
	@JSONField(serialize=false)
	private HashMap<String, String> workerMap;
	@JSONField(serialize=false)
	private HashMap<String, String> patientMap;
	DecimalFormat df = new DecimalFormat("#.00");
	public DepartmentCountReport(){
		this.workerMap=new HashMap<>();
		this.patientMap=new HashMap<>();
		cost=0d;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	@ExcelResources(title = "科室", order = 1)
	public String getDepartmentName() {
		return departmentName;
	}
	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}
	@ExcelResources(title = "实际服务费（元）", order = 2,isNum=1)
	public Double getCost() {
		return Double.valueOf(df.format(cost));
	}
	public void setCost(Double cost) {
		this.cost = cost;
	}
	@ExcelResources(title = "护理人员数（人）", order = 4,isNum=2)
	public int getWorkers() {
		return workers;
	}
	public void setWorkers(int workers) {
		this.workers = workers;
	}
	@ExcelResources(title = "患者人数（人）", order = 3,isNum=2)
	public int getPatients() {
		return this.patients;
		//return patientMap.size();
	}
	public void setPatients(int patients) {
		this.patients = patients;
	}
	public HashMap<String, String> getWorkerMap() {
		return workerMap;
	}
	public void setWorkerMap(HashMap<String, String> workerMap) {
		this.workerMap = workerMap;
	}
	public HashMap<String, String> getPatientMap() {
		return patientMap;
	}
	public void setPatientMap(HashMap<String, String> patientMap) {
		this.patientMap = patientMap;
	}
	public Integer getDepartment() {
		return department;
	}
	public void setDepartment(Integer department) {
		this.department = department;
	}
	@Override
	public String toString() {
		return "DepartmentCountReport [id=" + id + ", departmentName=" + departmentName + ", cost=" + cost
				+ ", workers=" + workers + ", patients=" + patients + ", department=" + department + ", workerMap="
				+ workerMap + ", patientMap=" + patientMap + "]";
	}
	
}

